package cn.yili12.business.mq.handler;

import cn.yili12.business.cache.OnlineUserCache;
import cn.yili12.business.mq.bean.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OfflineHandler extends BaseHandler {
    @Autowired
    private OnlineUserCache cache;

    @Override
    public boolean handler(Message message) {
        cache.remove(message.getFrom());
        return true;
    }
}
